﻿using System;
using System.ComponentModel;
using System.Linq;
using Inaction.Core;
using Inaction.Mapping;
using System.ComponentModel.DataAnnotations;

namespace Inaction.Business.Security
{
    [Table("AssemblyClass"), DisplayName("程序集类"), Serializable]
    public class AssemblyClass : Abstract.AssemblyClass<AssemblyClass>
    {
        #region 子表

        [Display(Description = "程序集类角色"), DisplayName("程序集类角色")]
        public AssemblyClassRoleList AssemblyClassRoles
        {
            get { return GetChild<AssemblyClassRoleList, AssemblyClassRole>(); }
        }

        [Display(Description = "程序集类资源"), DisplayName("程序集类资源")]
        public AssemblyClassResourceList AssemblyClassResources
        {
            get { return GetChild<AssemblyClassResourceList, AssemblyClassResource>(); }
        }

        #endregion
    }

    [DisplayName("程序集类列表"), Serializable]
    public class AssemblyClassList : Inaction.Business.EntityList<AssemblyClassList, AssemblyClass>
    {
    }
}
